package com.yupi.springbootinit.messagecenter;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "message-center")
public class MessageCenterProperties {

    private Reminders reminders = new Reminders();

    @Data
    public static class Reminders {
        /**
         * 未认领提醒延迟时间（分钟）
         */
        private int unclaimedDelayMinutes = 120;
    }
}